package com.hwl.lab.repository;

import com.hwl.lab.entity.RoleAndMenu;
import com.hwl.lab.entity.UserAndRole;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface RoleAndMenuRepository extends JpaRepository<RoleAndMenu,Long> {
    @Transactional
    List<RoleAndMenu> findMneunameByRoleid(String roleid);
    @Transactional
    void deleteByRoleid(String roleid);

}
